<script src="../include.js"></script>
<iframe id="testIframe" src="about:blank"></iframe>
<script>
    asyncTest(async done => {
        const iframe = document.getElementById("testIframe");

        function navigateIframe(src) {
            return new Promise(resolve => {
                iframe.addEventListener("load", () => {
                    resolve();
                });
                iframe.src = src;
            });
        }

        window.addEventListener("message", event => {
            println(event.data);
            if (event.data === "DONE")
                done();
        });

        await navigateIframe("../../data/navigation-navigate-iframe.html");
    });
</script>
